combine date and time python

136

combine date and time python -

import datetime
date = datetime.date(2012, 2, 12)
time = datetime.time(1, 30)
combined = datetime.datetime.combine(date, time)

Comments

Submit
0 Comments